<?php
/**
 * @file $HeadURL: Question.php $
 * @author $Author: Zhou.Z (zhouzhe@haibao.com) $
 * @date $Date: 2015-4-16 15:05:21 $
 * @brief 
 */
namespace haibao\cms\model\data;

class Question extends \haibao\cms\model\data\Base{
	/**
	 *默认类型为建议
	 */
	const DEFAULT_TYPE = 1;
	
	const DEFAULT_STATUS = 1;
	
	const STATUS_DELETE = 0;
	
	const SOURCE_PC = 1;
	
	const SOURCE_WAP = 2;
	
	const SOURCE_NEWIMAGE = 3;
	
	const SOURCE_CELEBRITY_RELATION = 4;
	
	const NULL_IP = 0;
	/**
	 * 联系地址
	 */
	public $Url;
	/**
	 * 联系方式
	 */
	public $Contact;
	/**
	 * Ip
	 */
	public $Ip;
	/**
	 * 详情简介
	 */
	public $Describe;
	/**
	 * 状态
	 */
	public $Status;
	
	public $Source;

	public $UserId;
	/**
	 * 图片Id
	 */
	public $ImageId;
	public $CreateTime;
	public $Type;
	public $ImageUrl;
	
	public function __construct(){
		parent::__construct();
		
		$this->stringField('Url', 'Url',false);
		$this->stringField('Contact', 'Contact',true);
		$this->stringField('Ip', 'Ip',true);
		$this->stringField('Describe', 'Describe',false);
		$this->intField('Status', 'Status',true);
		$this->intField('ImageId', 'ImageId',false);
		$this->intField('Type', 'Type',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('Source', 'Source',true);
		$this->intField('UserId', 'UserId',false);

		$this->setTableName('Question');
	}
	
}